package com.gcxy.conf.result;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @Author: pep7chiao
 * @Description: 分页请求参数封装
 * @Date: 2023/11/2 11:21
 */
@Data
public class PageDTO {
    /**
     * 当前页
     */
    @NotNull(message = "当前页必填")
    @ApiModelProperty(value = "当前页必填", required = true)
    @Min(value = 1, message = "当前页最小是1")
    private Integer pageNumber = 1;

    /**
     * 每页大小
     */
    @NotNull(message = "分页大小必填")
    @ApiModelProperty(value = "分页大小必填", required = true)
    @Min(value = 1, message = "每页大小最小是1")
    private Integer pageSize = 10;

}
